package com.sgg.springbootsgg001demo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//@ConfigurationProperties(prefix = "pig")   // 需要先将修饰的类交给spring 容器管理
//@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Pig {
    private String id;
    private String name;
    private Integer age;

}
